#include "trash.h"

Trash_Define::Trash_Define()
    :FacilityDefine(
        FacilityType::TRASH,
        max_interval,
        1,
        1,
        4,
        0,
        0
        ){
    relative_enters.push_back(EnterGate(Coordinate(0,0),gate::Gate_UP));
    relative_enters.push_back(EnterGate(Coordinate(0,0),gate::Gate_RIGHT));
    relative_enters.push_back(EnterGate(Coordinate(0,0),gate::Gate_DOWN));
    relative_enters.push_back(EnterGate(Coordinate(0,0),gate::Gate_LEFT));
}

Trash::Trash(FacilityDefine *define, FacilityDirection f_dir, Coordinate coordinate, Cargo_Manager * cargo_manager)
    :Facility(define,f_dir,coordinate,cargo_manager)
{}

void Trash::processCargo(){this->finishProcess();}

void Trash::finishProcess(){
    for(int i = 0; i < incargos.size();++i){
        if(incargos[i]) delete incargos[i];
        incargos[i] = null;
    }
}

void Trash::sendCargo() {}
